from rest_framework.serializers import ModelSerializer
from .models import *
from rest_framework import serializers  #普通序列化器

#新闻
class MNewSer(ModelSerializer):
    class Meta:
        model = MNew
        fields = '__all__'

#广告
class MadvertisingmanageSer(ModelSerializer):
    class Meta:
        model = Madvertising
        fields = '__all__'
